@import 'ant-design-variables.less';

.ant-cascader-menu-item:hover,
.ant-select-dropdown-menu-item:hover,
.ant-cascader-menu-item-active {
  color: #5969f6 !important;
  background-color: rgba(89, 105, 246, 0.1) !important;
}

.ant-progress-text {
  color: black !important;
  font-family: DINPro-Medium, DINPro;

  font-size: 18px;
  font-weight: 600;
}
// .ant-card-bordered{
//   border: none;
// }
.ant-drawer-body {
  padding: 24px 24px 100px;
}
// .anticon.ant-notification-notice-icon-error{
//   color: ;
// }
// .ant-upload-list-item-info{
//   visibility: hidden;
// }
// .ant-upload-list-item {
//   height: 0;
//   overflow: hidden;
//   margin: 0;
// }
// base
// 一级标题
.antMainTitle {
  font-size: 16px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: @main-color;
}
// 二级标题
.antSecondTitle {
  font-size: 14px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 400;
  color: @main-color;
}
.subtitle {
  color: @subtitle-color;
  font-size: 12px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}
.failure {
  color: @failure-color;
}
.content_text {
  color: @content-text-color;
}
.ml-20 {
  margin-left: 20px;
}
.selected {
  background-color: #f2f7ff;
  color: @primary-color;
}
.primary-color {
  color: @primary-color !important;
}
.primary-background {
  background-color: @primary-color;
}
.border-color-primary {
  border-color: @primary-color !important;
}
.flex-center {
  display: flex;
  align-items: center;
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex {
  display: flex;
}
.wrap {
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.between {
  justify-content: space-between;
}
.flex-1 {
  flex: 1;
}
.input-with-select {
  display: flex;
  align-items: center;
}
.input-with-select .ant-input {
  flex: 1;
}
.table-operator .ant-btn {
  margin-left: 8px;
}
.table-operator .ant-btn:first-of-type {
  margin-left: 0;
}
// button
div a {
  color: @link-color;
}
.ant-btn-primary,
.ant-btn-primary.disabled,
.ant-btn-primary[disabled],
.ant-btn-primary:hover,
.ant-btn-primary.disabled:hover,
.ant-btn-primary[disabled]:hover,
.ant-btn-primary:focus,
.ant-btn-primary.disabled:focus,
.ant-btn-primary[disabled]:focus,
.ant-btn-primary:active,
.ant-btn-primary.disabled:active,
.ant-btn-primary[disabled]:active,
.ant-btn-primary.active,
.ant-btn-primary.disabled.active,
.ant-btn-primary[disabled].active {
  border-color: transparent;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background-color: @primary-color;
}
.ant-btn:hover,
.ant-btn:focus,
.ant-btn-dashed:hover,
.ant-btn-dashed:focus {
  border-color: @primary-color;
}
.ant-btn::before {
  content: '';
  opacity: 0;
}
.ant-btn-lg {
  padding-left: 20px;
  padding-right: 20px;
}
.ant-btn-link:hover,
.ant-btn-link:focus,
.ant-btn-link:active {
  border-color: transparent;
}

// tabs
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
  margin-right: 20px;
}
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
  color: white;
  background-color: @primary-color;
  border-radius: 6px 6px 0 0;
  border-color: transparent;
}
// input
.ant-input:focus {
  box-shadow: none;
}
.ant-input-clear-icon {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.4) !important;
}
.ant-form-explain,
.ant-form-extra {
  font-size: 14px;
}
// .ant-form-explain {
//   margin-left: 0;
// }

// select
.ant-select-arrow {
  color: #666;
}
.ant-select-dropdown-menu-item-selected {
  color: @primary-color;
}
.ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {
  color: white;
}

// spin
.ant-spin.ant-spin-show-text .ant-spin-text {
  font-size: 12px;
}

// 设置滚动条
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  width: 6px;
  background: #f7f8fa;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb:hover {
  //   background-color: #CCCCCC;
}

// card
.ant-card-body {
  padding: 20px;
}
.ant-card-head {
  padding: 0;
  margin: 0 20px;
}
.m_tb__20 {
  margin: 20px 0;
}
.form-footer {
  // padding: 16px;
}
.form-tip {
  padding: 0;
  margin: 0;
  color: @content-text-color;
  font-size: 12px;
  display: flex;
  align-items: center;
  line-height: 2.5;
  &:before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url('https://zlj-xft-test.oss-cn-shenzhen.aliyuncs.com/c3de2c50-59a5-4f9e-8b8e-6987098d5209.png');
    background-size: 100%;
    margin-right: 6px;
    background-repeat: no-repeat;
  }
  &.none-icon::before{
    content: '';
    display: none;
  }
}
.remove-colon .ant-form-item-label > label::after {
  content: '';
  margin: 0;
}
.data-total {
  display: grid;
  grid-template-columns: repeat(auto-fill, 25%);
}
.table-operator .ant-btn {
  margin-right: 20px;
  &:last-of-type {
    margin-right: 0;
  }
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.table-page-search-submitButtons button {
  min-width: 68px;
  height: 32px;
  border-radius: 2px;
}
* {
  font-size: 14px;
}
.is-required {
  label::before {
    display: inline-block;
    margin-right: 4px;
    color: #f5222d;
    font-size: 14px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    content: '*';
  }
}
.exclamation{
  width: 14px;
  height: 14px;
  vertical-align: top;
  cursor: pointer;
}